#!/bin/env python
"""
Run benchmark 

@author Patrice Ferlet <metal3d@gmail.com>
@licence GNU GPL v3
"""
import os, sys
from optparse import OptionParser
from whichrocks import Benchmark, Manager

usage =  "You must create a benchfile in [benchmark-dir] to lauch benchmarks.\n"
usage += "%prog [options] benchmark-dir"

parser = OptionParser(usage)
parser.add_option("-o", "--outdir", dest="directory", help="output directory", metavar="DIR", default="./")
parser.add_option("-g", "--geometry", dest="geometry", help="graph size w,h", metavar="W,H", default="800,600")

(options, args) = parser.parse_args()
options.benchdir = os.path.realpath(args[0])
options.directory = os.path.realpath(options.directory)

m = Manager(options)
sys.exit(0)

